<!DOCTYPE html>

<html lang="en" xmlns:m="http://www.w3.org/1998/Math/MathML">
<head>
	
</head>
<body>
My simple test page.

<div>
<script src="js/general/nameSpace.js"></script>
<script src="js/general/workersPackage.js"></script>
<script src="js/uploadFiles/fileManager.js"></script>

<script>
array = [58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5,58,54,87,26,32,12,94,65,48,64,54,65,54,72,52,99,22,11,11,6,40,45,37,76,63,77,93,97,19,14,70,9,53,53,86,48,39,67,74,52,35,15,59,26,4,75,24,44,69,36,74,39,68,70,44,2,33,42,27,20,82,43,89,39,77,40,81,76,38,22,79,95,33,67,44,83,77,17,86,99,51,88,59,15,20,41,75,83,79,32,53,9,11,14,68,50,19,50,15,5];

timeTest = function(func, arr) {
	timeA = new Date();
	for(var loop=0; loop<1000; loop+=1) {
		func(arr);
	}
	timeB = new Date();
	return timeB-timeA;
}
var innerRed = function (previousValue, currentValue) {
        return previousValue + currentValue;
	};
reduceFun = function(x) {
    return x.reduce(innerRed);
};

reduceFun2 = function(x) {
    return x.reduce(function (previousValue, currentValue) {
        return previousValue + currentValue;
	});
};

reduceFun3 = function(x) {
	var innerRed2 = function (previousValue, currentValue) {
        return previousValue + currentValue;
	};
    return x.reduce(innerRed2);
};


/*var innerMap = function (currentValue) {
        sum += currentValue;
	};

mapFun = function(x) {
	var sum = 0;
    x.map(innerMap);
	return sum;
};
*/
forFun = function(x) {
	var i, sum = 0;
	for (i = 0; i < x.length; i+=1) {
		sum += x[i];
	}
	return sum;
};

forCFun = function(x) {
	var i, sum = 0, length = x.length;
	for (i = 0; i < length; i+=1) {
		sum += x[i];
	}
	return sum;
};

console.log('Reduce: ' + timeTest(reduceFun, array) + ' ms. Answer: ' + reduceFun(array));
console.log('Reduce Long: ' + timeTest(reduceFun2, array) + ' ms. Answer: ' + reduceFun(array));
console.log('Reduce Med: ' + timeTest(reduceFun3, array) + ' ms. Answer: ' + reduceFun(array));
//console.log('Map: ' + timeTest(mapFun, array) + ' ms. Answer: ' + mapFun(array));
console.log('For: ' + timeTest(forFun, array) + ' ms. Answer: ' + forFun(array));
console.log('For-Cache: ' + timeTest(forCFun, array) + ' ms. Answer: ' + forCFun(array));


</script>

</div>

</body>
</html>